package com.zzsoft.nettysocket.service;/**
 * Created by zhanghb on 2019/9/8.
 */

import com.zzsoft.util.SocketUtil;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author Zhanghb
 * @Date
 */
@Service
public class NettyService {
    /**
     *
     * @param key
     * @param msg
     */
    public void sedMsg(String key,String msg){
        SocketUtil.sendMsg(key,msg);
    }

    /**
     *
     * @param key
     * @param msg
     */
    public void sendMsgToClient(String key,String msg){
        SocketUtil.sendMsgToClient(key,msg);
    }

    /**
     *
     * @param msg
     */
    public void sendMsgToAllClient(String msg){
        SocketUtil.sendMsgToAllClient(msg);
    }
}
